package com.liruo.learn.spring.mvc.controller.valid;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;

/**
 * @Author:liruo
 * @Date:2023-06-10-18:14:27
 * @Desc
 */
@Slf4j
@RequestMapping("/validMethodArgNotUseValidatedOnClassControllerTest")
@RestController
public class ValidMethodArgNotUseValidatedOnClassControllerTest {
    @GetMapping
    public void f(@Valid @NotEmpty String s){
        log.info(s);
    }
}
